/*
 * @Author: cyfqyb
 * @Date: 2023-10-11 14:18:26
 * @LastEditors: cyfqyb cy15770703229@163.com
 * @LastEditTime: 2023-10-26 15:20:52
 * @FilePath: \ImBackend\src\store\User.ts
 * @Description: 介绍
 */
import { observable, action, makeObservable } from "mobx";

class UserStore {
  constructor() {
    makeObservable(this, {
      username: observable,
      password: observable,
      setCredentials: action,
    });
  }

  username: string = "";
  password: string = "";

  setCredentials(username: string, password: string) {
    this.username = username;
    this.password = password;
  }
}

const userStore = new UserStore();
export default userStore;
